package com.coca1cole.auth.domain.convert;

import com.coca1cole.auth.domain.entity.AuthUserBO;
import com.coca1cole.auth.infra.basic.entity.AuthUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * bo转换器
 *
 * @author coca1cole
 * @since 2024-01-22 18:13:52
 */
@Mapper
public interface AuthUserBOConverter {

    AuthUserBOConverter INSTANCE = Mappers.getMapper(AuthUserBOConverter.class);

    AuthUser convertBOToEntity(AuthUserBO authUserBO);

    AuthUserBO convertEntityToBO(AuthUser user);
}
